package logger;

/**
 * @version 1.0
 * @author:罗苏琴
 * @Date 2024/12/11 下午5:02
 */
public class LogServiceImpl implements LogService{
    @Override
    @Log
    public void testMethod1() {
        try{
            Thread.sleep(100);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("Executing testMethod1");
    }

    @Override
    @Log
    public void testMethod2() {
        try{
            Thread.sleep(150);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("Executing testMethod2");
    }

    @Override
    public void testMethod3() {
        try{
            Thread.sleep(50);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("Executing testMethod3");
    }
}
